﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using EDMDesigner.Designer.Controls.Relations;

namespace EDMDesigner.Designer.BindingConverter
{
    public class InheritanceRelationToVisibleConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((InheritanceRelation)value).FourPoints ? Visibility.Visible : Visibility.Collapsed;
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
